<?php

require_once "core/application/models/mlogon/mlogon1.php";

class Mlogon2 extends Mlogon1 {

    protected function issetAccount($login, $password) {
        /**
         * @param string $login
         * @param string $password
         */
        if (mysql_num_rows($this->getInfoForLogin($login, $password))) {
            return true;
            DB::getInstance()->closeConnection();
        } else {
            return false;
            DB::getInstance()->closeConnection();
        }
    }

}

?>
